package com.ecloud.aiassistantbackground.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author Squbirreland
 * @since 2021-04-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("assistant_user")
@ApiModel(value = "User对象", description = "用户表")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户id")
    @TableId(value = "user_id", type = IdType.AUTO)
    private Integer userId;

    @ApiModelProperty(value = "用户的微信open_id")
    private String userOpenId;

    @ApiModelProperty(value = "用户的微信标识符")
    private String userUnionId;

    @ApiModelProperty(value = "用户的邀请码 新增用户时生成唯一")
    private String userInviteCode;

    @ApiModelProperty(value = "用户最后一次登录的时间")
    private LocalDateTime userLastLoginTime;

    @ApiModelProperty(value = "用户状态 1正常 0冻结")
    private String userStatus;

    @ApiModelProperty(value = "用户如果被封禁的封禁时间")
    private LocalDateTime userBannedTime;

    @ApiModelProperty(value = "用户的注册时间")
    private LocalDateTime userRegisterTime;

    @ApiModelProperty(value = "备用字段1")
    private String userReserve1;

    @ApiModelProperty(value = "备用字段2")
    private String userReserve2;

}
